package com.tencent.txcc;


import com.tencent.txcc.domain.CourseDoc;
import com.tencent.txcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-search", fallbackFactory = ESServiceFallbackFactory.class)
@RequestMapping("/course")
public interface ESService {
    @RequestMapping(value="/courseEsAdd",method= RequestMethod.POST)
    JSONResult courseEsAdd(@RequestBody CourseDoc courseDoc);

    @RequestMapping(value="/courseEsDel",method= RequestMethod.POST)
    JSONResult courseEsDel(@RequestBody Long id);
}
